From 68c79a699c24b24d139def1d958a9e687c4b0998 Mon Sep 17 00:00:00 2001 From: "cl349@freefall.cl.cam.ac.uk" Date: Wed, 4 Aug 2004 10:15:11 +0000 Subject: [PATCH] bitkeeper revision 1.1139.1.1 (4110b72fhtHFIf4Ul13KpCx5pOkJ7w) Make pages used for LDT writable when they get freed. Fixes ltp thread creation test failure. --- linux-2.6.7-xen-sparse/arch/xen/i386/kernel/ldt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/ldt.c b/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/ldt.c index d243b3a766..9d7497e4d5 100644 --- a/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/ldt.c +++ b/linux-2.6.7-xen-sparse/arch/xen/i386/kernel/ldt.c @@ -71,6 +71,9 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload) #endif } if (oldsize) { + make_pages_writeable(oldldt, (oldsize * LDT_ENTRY_SIZE) / + PAGE_SIZE); + flush_page_update_queue(); if (oldsize*LDT_ENTRY_SIZE > PAGE_SIZE) vfree(oldldt); else -- 2.30.2